extends "../gaoxiong-1/gaoxiong-1.gd"


func _extInit():
	._extInit()
	attInfox.spd += 0.3
	lv = 2             #等级的设置
	addSkill("开局闪现至同行最后一格，立即发射一轮鱼雷，并获得6层<圣盾><模糊>", "斩首行动")

func _onBattleStart():
	._onBattleStart()
	gx_zsxd()

func gx_zsxd():
	yield(reTimer(0.45), "timeout")
	var mv = Vector2(cell.x ,cell.y)
	if team == 1:mv.x = 8
	else:mv.x = 0
	for i in config.aroundCells:
		var v = mv+i
		if matCha(v) == null && sys.main.isMatin(v):
			if setCell(v) :
				var pos = sys.main.map.map_to_world(cell)
				ying(pos)
				position = pos
				aiCha = null
				break		
	buff.addShengDun(self, 6)
	if team == 1:
		addBuff(buff.b_moHu.new(6))
	reloadSkill("torpedo")